package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.Brand;

public class BrandMapper implements RowMapper<Brand> {

	@Override
	public Brand mapRow(ResultSet rs, int arg1) throws SQLException {
		Brand brand = new Brand();
		brand.setBrandID(rs.getInt("brandID"));
		brand.setBrandName(rs.getString("brandName"));
		brand.setWebsite(rs.getString("website"));
		return brand;
	}

}
